package com.example.dong.clients.configuration;

import com.example.dong.clients.fallback.SomeClientFallbackFactory;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author dzh
 * @date 2022/12/10 8:58
 */
@Configuration
@EnableFeignClients("com.example.dong.clients")
public class AppClientsConfig {

    @Bean
    public SomeClientFallbackFactory getSomeClientFallbackFactory() {
        return new SomeClientFallbackFactory(){};
    }
}
